{template "../Public/header"}
{template "../Public/nav"}
<div class="w990 clear">
        <div class="clear" style="margin: 8px 0">
        </div>
        <div id="main" style="padding-top: 0;">
            <div class="main_l5">
                <h1>{$mall.name}优惠券</h1><p>{$page_description}</p>
                <div id="p_top">
                    <div id="p_top_left">
                            <img style="max-width: 260px;" src="{echo FixedUploadedFileUrl($mall[figure_image]);}"></div>
                    <div id="p_top_right">
                        <li><span class="pred">网站名称：</span>{$mall.name}</li>
                        <li><span class="pred">网站地址：</span><a rel="nofollow" href="{echo reUrl('Mall/out?id='.$mall['id']);}" target="_blank">{$mall.website}</a></li>
                        
                        <li><span class="pred">客服电话：</span>{$mall.tel}</li>
                        
                        <li style="border: 0px">{$mall.description}</li>
                    </div>
                </div>
                <div class="dash_line">
                </div>
                <div class="main_l_i">
                    <div class="main_l_c_c">
                        <ul class="coupons-list" id="J_CouponsList">
<!--{loop $codes $item}-->
<li>
    <div class="coupon-wrapper">
        <div class="scissors">
        </div>
        <h2>
            <a title="{if $item['title']}{$item.title}{else}{$item.m_name}{if $item['c_type']==1}满{$item.money_max}减{$item.money_reduce}元优惠码{else}{$item.money_amount}元代金券{/if}{/if}" href="{echo reUrl('Code/view?id='.$item[c_id])}" target="_blank">{if $item['title']}{$item.title}{else}{$item.m_name}{if $item['c_type']==1}满{$item.money_max}减{$item.money_reduce}元优惠码{else}{$item.money_amount}元代金券{/if}{/if}</a>
            
            <!--<i class="hot">hot</i>-->
            
        </h2>
        <a title="{if $item['title']}{$item.title}{else}{$item.m_name}{if $item['c_type']==1}满{$item.money_max}减{$item.money_reduce}元优惠码{else}{$item.money_amount}元代金券{/if}{/if}" href="{echo reUrl('Code/view?id='.$item[c_id]);}" class="coupon" target="_blank">
            <span class="left"><span class="description"><!--{if $item['c_type']==1}-->满<em>{$item.money_max}</em>减<em>{$item.money_reduce}</em><!--{else}--><em>{$item.money_amount}</em>元代金券<!--{/if}-->
            </span><span class="store-logo">
                <img src="{echo FixedUploadedFileUrl($mall[logo]);}" style="display: block;"></span> </span>
            <span class="right">
                
                <em class="free"><!--{if $item['price_type']==1}-->免费<!--{elseif $item['price_type']==2}-->{$item.price}元<!--{elseif $item['price_type']==3}-->{$item.price}积分<!--{/if}--></em>
                <!--{if $item['fetched_amount'] < $item['amount'] && (($item['expiry_type']==1 && $item['expiry']>0)||$item['expiry_type']==2)}-->
				<span class="get"><b></b>立即领取</span>
				<!--{elseif $item['fetched_amount'] >= $item['amount']}-->
				<span class="pulled"><b></b>已经领完</span>
				<!--{elseif $item['expiry_type']==1 && $item['expiry']==0}-->
				<span class="expire"><b></b>已到期</span>
				<!--{/if}-->
            </span></a>
        
        <div class="info">
            
            <span><!--{if $item['expiry_type']==1}--><!--{if $item['expiry']==0}-->已结束<!--{else}-->还剩 <i><!--{if $item['expiry']>$_CFG['max_left_days']}-->{$_CFG['max_left_days']}<!--{else}-->{$item.expiry}<!--{/if}--></i> 天<!--{/if}--><!--{else}-->长期有效<!--{/if}--></span><span>已领:<i>{$item.fetched_amount}</i></span><span>剩余:<i>{echo $item['amount']-$item['fetched_amount'];}</i></span>
            
            <span><a class="store-from" href="{echo reUrl('Mall/view?id='.$item[m_id])}">{$item.m_name}优惠券</a></span>
        </div>
        
    </div>
</li>
<!--{/loop}-->
                        </ul>
                    </div>
                </div>
            </div>
            <div class="main_r" style="width: 320px;">
                <ul class="sidebar">
                    <li class="blue">
                        <h3>
                            商家信息</h3>
                        <div class="sidebar_s clear">
                            <div class="sidebar_s_l">
                                <a href="{echo reUrl('Mall/view?id='.$mall[id])}">
                                    <img src="{echo FixedUploadedFileUrl($mall[logo]);}" alt="{$mall.name}"></a>
                                <div class="gobuy">
                                    <a rel="nofollow" href="{echo reUrl('Mall/out?id='.$mall['id']);}" target="_blank" class="btn counter"><span>去商家购物</span></a></div>
                            </div>
                            <div class="sidebar_s_i">
                                商家名称：<a rel="nofollow" href="{echo reUrl('Mall/out?id='.$mall['id']);}">{$mall.name}</a><br>
                            </div>
                        </div>
                    </li>
                    <li class="yellow">
                        <h3>
                            领取最多的优惠券列表</h3>
                        <ol class="rank_coupon">
                            <!--{eval $hot=coupon_codes_hot('week', 10);}-->
                            <!--{loop $hot $item}-->
                            <li><a title="{if $item['title']}{$item.title}{else}{$item.m_name}{if $item['c_type']==1}满{$item.money_max}减{$item.money_reduce}元优惠码{else}{$item.money_amount}元代金券{/if}{/if}" href="{echo reUrl('Code/view?id='.$item[c_id]);}">{if $item['title']}{$item.title}{else}{$item.m_name}{if $item['c_type']==1}满{$item.money_max}减{$item.money_reduce}元优惠码{else}{$item.money_amount}元代金券{/if}{/if}</a></li>
                            <!--{/loop}-->
                        </ol>
                    </li>
                    <li class="yellow_b">
                        <h3>
                            推荐商城</h3>
                        <ul class="twocol img">
                        	<!--{eval $mall_recs=rec_malls(102);}-->
                            <!--{loop $mall_recs $item}-->
                            <li><a title="{$item.name}优惠券" href="{echo reUrl('Mall/view?id='.$item[c_id])}">
                                <img width="90" src="{echo FixedUploadedFileUrl($item[logo]);}"><br>
                                {$item.name}优惠券</a></li>
                            <!--{/loop}-->
                        </ul>
                    </li>
                    <li class="yellow">
                        <h3>
                            随机推荐优惠券</h3>
                        <ol class="rank_coupon">
                            <!--{eval $randoms=coupon_codes_randoms(10);}--> 
                            <!--{loop $randoms $item}-->
                            <li><a title="{if $item['title']}{$item.title}{else}{$item.m_name}{if $item['c_type']==1}满{$item.money_max}减{$item.money_reduce}元优惠码{else}{$item.money_amount}元代金券{/if}{/if}" href="{echo reUrl('Code/view?id='.$item[c_id]);}">{if $item['title']}{$item.title}{else}{$item.m_name}{if $item['c_type']==1}满{$item.money_max}减{$item.money_reduce}元优惠券{else}{$item.money_amount}元代金券{/if}{/if}</a></li>
                            <!--{/loop}-->
                            
                        </ol>
                    </li>
                </ul>
            </div>
        </div>
    </div>
{template "../Public/footer"}